package com.ostrich.cloud.ostrichGoodsService.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ostrich.cloud.common.result.PageResult;
import com.ostrich.cloud.ostrichGoodsSercice.model.Dto.TypeDto;
import com.ostrich.cloud.ostrichGoodsService.infra.model.Type;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ostrich.cloud.ostrichGoodsService.service.param.CreateTypeParam;
import com.ostrich.cloud.ostrichGoodsService.service.param.GetTypeParam;
import com.ostrich.cloud.ostrichGoodsService.service.param.UpdateTypeParam;

import java.math.BigDecimal;

/**
 * <p>
 * 类别表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2022-10-26
 */
public interface TypeService extends IService<Type> {

    void createType(CreateTypeParam createTypeParam);

    PageResult<TypeDto> getAllType(GetTypeParam param);

    Boolean delType(Integer typeId);

    Boolean updateType(UpdateTypeParam updateTypeParam);
}
